package com.rp.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Table(name = "article")
@Data
public class Article {
    @Id
    private String id;

    private String title;

    @Column(name = "category_id")
    private Integer categoryId;

    @Column(name = "article_type")
    private Integer articleType;

    @Column(name = "article_cover")
    private String articleCover;

    @Column(name = "is_appoint")
    private Integer isAppoint;

    @Column(name = "article_status")
    private Integer articleStatus;

    @Column(name = "publish_user_id")
    private String publishUserId;

    @Column(name = "publish_time")
    private Date publishTime;

    @Column(name = "read_counts")
    private Integer readCounts;

    @Column(name = "comment_counts")
    private Integer commentCounts;

    @Column(name = "mongo_file_id")
    private String mongoFileId;

    @Column(name = "is_delete")
    private Integer isDelete;

    @Column(name = "create_time")
    private Date createTime;


    @Column(name = "update_time")
    private Date updateTime;

    private String content;


}